package org.example;

/**
 * @author junjie.yang
 * @date 2023/12/26
 */
public class MyContext {
    private MyState state;

    public MyContext(MyState state) {
        this.state = state;
    }

    public void setState(MyState state) {
        this.state = state;
    }

    public void handle(){
        state.handle();
    }
}
